package com.demo.service.serviceImpl;

import com.demo.dao.TabUsersShopsDao;
import com.demo.model.TabUsers;
import com.demo.model.TabUsersShops;
import com.demo.service.TabUsersShopsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TabUsersShopsServiceImpl implements TabUsersShopsService {

    @Resource
    private TabUsersShopsDao dao;

    @Override
    public int total_shop_users() {
        return dao.total_shop_users();
    }

    @Override
    public void save(TabUsersShops s) {
        dao.save(s);
    }

    @Override
    public List<TabUsersShops> select_check_us(TabUsersShops us) {
        return dao.select_check_us(us);
    }

    @Override
    public int same_shop_users(String shopid) {
        return dao.same_shop_users(shopid);
    }

    @Override
    public List<TabUsers> same_shop_users_list(TabUsersShops shop) {
        return dao.same_shop_users_list(shop);
    }


}
